package sanrenxing.dayEnd.backRepertoryTotal.service;


import sanrenxing.dayEnd.backRepertoryTotal.domain.CashReceivable;
import sanrenxing.dayEnd.backRepertoryTotal.domain.FundAllocation;

import java.util.List;

/**
 * 资金调拨业务层接口
 */
public interface FundAllocationBiz {
    /**
     * 将调拨实体类添加到数据库表中
     * @param fundAllocation
     * @return
     */
    public int add(FundAllocation fundAllocation);

    /**
     * 从表中按照编号删除一行数据
     * @param tofId
     * @return
     */
    public int delete(int tofId);

    /**
     * 修改一行数据
     * @param fundAllocation
     * @return
     */
    public int update(FundAllocation fundAllocation);

    /**
     * 按条件分页查询
     * @param rows
     * @param pages
     * @param condition
     * @return
     */
    public List<FundAllocation> findAll(int rows, int pages, String condition);

    /**
     * 按条件统计记录数
     * @param condition
     * @return
     */
    public int count(String condition);

    /**
     * 获取查询条件
     * @param fundAllocation
     * @return
     */
    public String getCondition(FundAllocation fundAllocation);

    /**
     * 添加现金应收应付数据
     * @param cashReceivable
     */
    public void addSec(CashReceivable cashReceivable);
}
